class complex:
    def __init__(self, x, y):
        self.x = x
        self.y = y

    def show(self):
        print(self.x, "+", self.y, "i")

c1=complex(1,2)
c2=complex(c1.x,c1.y) #深拷贝
c1.x=100
print(id(c1),id(c2))
c1.show()
c2.show()
